package edu.byu.intex2.data.bo;

import edu.byu.intex2.data.DataException;
import edu.byu.intex2.data.dao.*;

/**
 * @author Jason Whiting
 */
public class Technician extends Employee
{

    private String serviceFacilityId;

    /**
     * Creates a new instance of BusinessObject
     * @param id
     */
    public Technician(String id)
    {
        super(id);
    }//constructor

    //Quick Access Method
    @Override
    public void save() throws DataException
    {
        try
        {
            TechnicianDAO.getInstance().save(this);
        } catch (DataException e)
        {
            e.printStackTrace();
        }
    }

    /**
     * @return the serviceFacilityId
     */
    public String getServiceFacilityId()
    {
        return serviceFacilityId;
    }

    /**
     * @param serviceFacilityId the serviceFacilityId to set
     */
    public void setServiceFacilityId(String serviceFacilityId)
    {
        this.serviceFacilityId = serviceFacilityId;
        this.setDirty();
    }
}
